﻿@using Lavka.Core
@using Lavka.Models
<div class="body">
    @foreach (Articles article in ArticlesHelper.GetRandomArticles(new LavkaDbEntities()))
    {
        <a href="/Articles/Details/@article.ArticleId">        
            <div>
                @if (!string.IsNullOrEmpty(article.Photo))
                {
                    <img src="@Url.Content(article.Photo)" alt="@article.Title" class="ui-corner-all small-image float-image" />              
                }            
            </div>
            <div class="text">
                <a href="/Articles/Details/@article.ArticleId"> @article.Title </a>
            </div>
        </a>
        <div style="clear: both;"></div>
    }
</div>
